<include file="Public:header"/>
<style>
body{font-size:12px;color:black}
.page{height:20px;width:20px;border:1px solid #FF5500; text-align:center;vertical-align:middle;display:inline-block;color:#0066CC;cursor:pointer;}
.page:hover{color:#0066CC}
.page_current{height:20px;width:20px;border:1px solid #FF5500; text-align:center;vertical-align:middle;color:#FF0000;font-weight:bold;background:#FFEEE5;display:inline-block;}
</style>

<table bordercolor="#DDDFFF" border="1" width="100%" style="border-collapse: collapse" cellpadding="3">
	<tr height="17" align="center">
		<td class="title" width="200">用户名</td>
		<td class="title" width="200">邮箱</td>
		<td class="title" width="100">手机</td>
		<td class="title" width="200">最近登录</td>
		<td class="title" width="40">修改</td>
		<td class="title" width="40">删除</td>
		<td class="title">　</td>
	</tr>
<volist name="member" id="member">
	<tr height="20" bgcolor="#F1F5FA" class="cat_list">
		<td width="200" style="font-weight:bold">{$member.uname}</td>
		<td width="200">{$member.email}</td>
		<td width="100" align="center">{$member.mobile}</td>
		<td width="200" align="center">{$member.last_login|date="Y/m/d H:i",###}</td>
		<td width="40" align="center"><a href="javascript:;" onclick="update({$member.member_id})">修改</a></td>
		<td width="40" align="center"><a href="javascript:;" onclick="deletes({$member.member_id})">删除</a></td>
		<td></td>
	</tr>
</volist>
</table>

<div id="save">{$page}</div>
<script>
function deletes(t){
	if(confirm('你确认删除此会员吗？')) {
       $.ajax({
	       type:"GET",
		   url:"__URL__/del_member",
		   dataType:"json",
		   data:{"id":t},
		   success:function(data){
               if(data=='1'){
				   jSuccess("<strong>删除成功！</strong>",{TimeShown : 500,VerticalPosition : 'center',HorizontalPosition : 'center',onClosed:function(){location.reload();}})
			  }else{
			      jError("<strong>删除失败!请重试</strong>",{VerticalPosition : 'center',HorizontalPosition : 'center'});
			 }
		   }
	   })

	}
}
</script>
<script src="__APP__/statics/webox/webox.js"></script>
<link href="__APP__/statics/webox/jquery-webox.css" rel="stylesheet" type="text/css">
<script type="text/javascript">
function update(t){
       var gid=t;
		$.webox({
		    scroll:'no',
			height:300,
			width:950,
			bgvisibel:true,
			title:'修改',
			iframe:'__URL__/member_edit/?id='+gid
		});
}
</script>
